﻿using System.ComponentModel;
using System.Windows;

namespace AWSV2.Models.Custom
{
    public class PagerHandle : INotifyPropertyChanged
    {
        string _IndexStr;
        public string IndexStr
        {
            get { return _IndexStr; }
            set
            {
                _IndexStr = value;
                OnPropertyChanged("IndexStr");
            }
        }
        System.Windows.Style _ControlStyle = (System.Windows.Style)Application.Current.Resources["Button TotalStyle"];
        public System.Windows.Style ControlStyle
        {
            get { return _ControlStyle; }
            set
            {
                _ControlStyle = value;
                OnPropertyChanged("ControlStyle");
            }
        }
        public event PropertyChangedEventHandler PropertyChanged;

        private void OnPropertyChanged(string value)
        {
            PropertyChangedEventHandler handler = PropertyChanged;
            if (handler != null)
            {
                handler(this, new PropertyChangedEventArgs(value));
            }
        }
    }

    public class ComboItem : INotifyPropertyChanged
    {
        private string _name;
        private int _value;
        public event PropertyChangedEventHandler PropertyChanged;

        public string Name
        {
            get { return _name; }
            set
            {
                _name = value;
                OnPropertyChanged("Name");
            }
        }
        public int Value
        {
            get { return _value; }
            set
            {
                _value = value;
                OnPropertyChanged("Value");
            }
        }

        private void OnPropertyChanged(string value)
        {
            PropertyChangedEventHandler handler = PropertyChanged;
            if (handler != null)
            {
                handler(this, new PropertyChangedEventArgs(value));
            }
        }
    }


}
